package com.uplift.mobile.realty.dao;

import com.uplift.mobile.realty.model.RealtyInfo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface RealtyInfoMapper {
	public List<Map<String, Object>> selectRealtyInfo(RealtyInfo realtyInfo);

	/**
	 * 新增物业信息
	 * @param realtyInfo
	 * @return
	 */
	public int insertRealtyInfo(RealtyInfo realtyInfo);

	/**
	 * 更新物业信息
	 * @param realtyInfo
	 * @return
	 */
	public int updateRealtyInfo(RealtyInfo realtyInfo);

	/**
	 * 获取客户总资产
	 * @param realtyInfo
	 * @return
	 */
	public Map<String, Object> countCustomerAsset(RealtyInfo realtyInfo);
}
